Skip to content

MiniBrowser: Improve navigation and UI polish#222

Closed
felipeerias wants to merge 7 commits intomainfrom
felipeerias/minibrowser-improvements
Closed

MiniBrowser: Improve navigation and UI polish#222
felipeerias wants to merge 7 commits intomainfrom
felipeerias/minibrowser-improvements

Conversation

@felipeerias
Copy link
Copy Markdown
Collaborator

Navigation improvements:

  • Update URL bar when page URI changes
  • Handle device back button to navigate browser history
  • Default to HTTPS when scheme is not specified
  • Clear focus from URL bar after navigation

UI improvements:

  • Move progress bar above toolbar
  • Update UI style and colors

@felipeerias
Copy link
Copy Markdown
Collaborator Author

This PR builds on top of #221

In clang-tidy rules, change WarningsAsErrors to warnings only.
Preserve Cerbero build folder during gradle clean.
Replace the legacy wpe-android view-backend with the new WPE Platform API,
providing a cleaner integration with WebKit's rendering pipeline.

New implementations:
- WPEDisplayAndroid: Android-specific WPEDisplay
- WPEToplevelAndroid: Window/toplevel management
- WPEViewAndroid: View with buffer handling via AHardwareBuffer
- WPEInputMethodContextAndroid: Input method context

Key changes:
- RendererSurfaceControl uses WPEBuffer directly instead of WPEAndroidBuffer
- Connect fundamental WebKit signals for navigation, loading, and UI
@felipeerias felipeerias force-pushed the felipeerias/minibrowser-improvements branch from f367d5a to 38cb623 Compare January 16, 2026 11:52
Add full keyboard support for web content using WPE's input method context:

- AndroidKeyMap.h: Maps Android keycodes to XKB keysyms
- WPEInputConnection: Android InputConnection for soft keyboard
- Support for text composition, deletion, and hardware key events

The input method context integrates with WPE's focus tracking to
show/hide the soft keyboard when input fields gain or lose focus.
WebKit notifications for media playback and capture state changes:

- notify::is-playing-audio: Track when audio starts/stops playing
- notify::is-muted: Track mute state changes
- notify::camera-capture-state: Track camera capture activity
- notify::microphone-capture-state: Track microphone capture activity
- notify::display-capture-state: Track screen sharing activity
Navigation improvements:
- Update URL bar when page URI changes
- Handle device back button to navigate browser history
- Default to HTTPS when scheme is not specified
- Clear focus from URL bar after navigation

UI improvements:
- Move progress bar above toolbar
- Update UI style and colors
@felipeerias felipeerias force-pushed the felipeerias/minibrowser-improvements branch from 38cb623 to ea0500b Compare January 21, 2026 08:10
@alexgcastro
Copy link
Copy Markdown
Collaborator

This basically integrated after PR #228

@alexgcastro alexgcastro closed this Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants